package com.zjhcsoft.zjpr.statistics.job;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import org.apache.log4j.Logger;

public class Resoure {
	private static Logger LOG = Logger.getLogger(Resoure.class);
	private static Properties pro = null;

	public static String INPUT = "GBK";
	public static String OUTPUT = "GBK";

	public static String RECEIVEFAX = "receivefax";
	public static String CUSTOMIZATION = "smscustomization";

	static {
		InputStream in = Resoure.class.getResourceAsStream("ftp.properties");
		pro = new Properties();
		try {
			pro.load(in);
		} catch (IOException e) {
			LOG.error("load ftp.properties!", e);
		}
		INPUT = pro.getProperty("sourcecode");
		OUTPUT = pro.getProperty("outputcode");
	}

	public static String get(String name) {
		return pro.getProperty(name);
	}
}